/*
 * @Descripttion: 消息推送
 * @version: V1.0
 * @Author: GW
 * @Date: 2022-01-08 10:03:08
 * @LastEditors: GW
 * @LastEditTime: 2022-01-10 10:13:35
 */
import { axios } from "../../utils/request";

const api = {
    list: "/sys/msg/pageList",  //获取消息列表
    count: "/sys/msg/getMsgCount",//获取消息数量
    remove: "/sys/msg/delete",//删除消息
    read: "/sys/msg/readMsg",//阅读消息
}

/**
 * 列表
 */
export function list (data) {
    return axios({
        url: api.list,
        method: "get",
        params: data
    });
}

export function remove (parameter) {
    return axios({
        url: api.remove,
        method: "post",
        data: parameter
    });
}

export function count (parameter) {
    return axios({
        url: api.count,
        method: "get",
        params: parameter
    });
}

export function read (parameter) {
    return axios({
        url: api.read,
        method: "post",
        data: parameter
    });
}
